package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.EmissionsBreakdownMapper;
import com.isdepci.project.result.domain.EmissionsBreakdown;
import com.isdepci.project.result.service.IEmissionsBreakdownService;

/**
 * 范围排放量Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class EmissionsBreakdownServiceImpl implements IEmissionsBreakdownService
{
    @Autowired
    private EmissionsBreakdownMapper emissionsBreakdownMapper;

    /**
     * 查询范围排放量
     */
    @Override
    public EmissionsBreakdown selectEmissionsBreakdownById(Long scopeId)
    {
        return emissionsBreakdownMapper.selectEmissionsBreakdownById(scopeId);
    }

    /**
     * 查询范围排放量列表
     */
    @Override
    public List<EmissionsBreakdown> selectEmissionsBreakdownList(EmissionsBreakdown emissionsBreakdown)
    {
        return emissionsBreakdownMapper.selectEmissionsBreakdownList(emissionsBreakdown);
    }

    /**
     * 新增范围排放量
     */
    @Override
    public int insertEmissionsBreakdown(EmissionsBreakdown emissionsBreakdown)
    {
        return emissionsBreakdownMapper.insertEmissionsBreakdown(emissionsBreakdown);
    }

    /**
     * 修改范围排放量
     */
    @Override
    public int updateEmissionsBreakdown(EmissionsBreakdown emissionsBreakdown)
    {
        return emissionsBreakdownMapper.updateEmissionsBreakdown(emissionsBreakdown);
    }

    /**
     * 批量删除范围排放量
     */
    @Override
    public int deleteEmissionsBreakdownByIds(Long[] scopeIds)
    {
        return emissionsBreakdownMapper.deleteEmissionsBreakdownByIds(scopeIds);
    }

    /**
     * 删除范围排放量信息
     */
    @Override
    public int deleteEmissionsBreakdownById(Long scopeId)
    {
        return emissionsBreakdownMapper.deleteEmissionsBreakdownById(scopeId);
    }
}
